.home {
    // padding-bottom: 20rpx;
    padding: 0 46rpx 20rpx;
    overflow: hidden;
    // background:url('https://wftpay.ssgddsj.com/b30Img/match_bg.png') no-repeat 0 60%;
    background:url('https://wftpay.ssgddsj.com/b30Img/recipe-bg.jpg') no-repeat;
    background-size:contain;
    background-color: #f5f6fa;

    // 头部
    view.recipe-head {
        margin-top: 54rpx;
        padding: 0 10rpx;
        color: #fff;
        position: relative;
        view.recipe-head-title {
            font-size: 40rpx;
            line-height: 40rpx;
            margin-bottom: 15rpx;
        }
      
        view.recipe-head-vip {
            position: absolute;
            top: 60rpx;
            left: 254rpx;
            width: 34rpx;
            height: 18rpx;
            background-color: #b8c1ef;
            font-size: 12rpx;
            text-align: center;
            color: #1127a3;
            line-height: 18rpx;
            border-radius: 2rpx;
        }
    }

    // 一周的体重管理
    view.recipe-manage {
        margin-top: 34rpx;
        height: 306rpx;
        background-color: #fff;
        padding: 0 14rpx;
        overflow: hidden;
        border-radius: 16rpx;
        box-shadow: 5rpx 5rpx 28rpx 0 rgba(0,0,0,.12);
        view.recipe-manage-title {
            margin-top: 30rpx;
            color: #2f3245;
            font-size: 26rpx;
            line-height: 28rpx;
            font-weight: bold;
            display: flex;
            align-items: center;
            &::before{
                display: inline-block;
                content: "";
                height: 28rpx;
                width: 4rpx;
                background-color: #90acff;
                margin-right: 11rpx;
                border-radius: 2rpx;
            }
        }
      
        view.recipe-manage-content {
            margin-top: 40rpx;
            display: flex;
          view.recipe-manage-item {
            .item-map-container{
                width: 90rpx;
                border-right: 1rpx dashed #e7e7e7;
                text-align: center;
                border-bottom: 1rpx solid #e7e7e7;
                box-sizing: border-box;
                view.item-val {
                    color: #939598;
                    font-size: 18rpx;
                }
          
                view.item-map {
                    height: 136rpx;
                    position: relative;
                    overflow: hidden;
                  view.item-map-content {
                    height: 8rpx;
                    width: 24rpx;
                    background-color: #e6e6e6;
                    position: absolute;
                    bottom: -2rpx;
                    left: 50%;
                    transform: translateX(-50%);
                    transition: height .5s;
                  }
                }
          
            }
            view.item-title {
                margin-top: 8rpx;
                width: 90rpx;
                color: #313437;
                font-size: 18rpx;
                line-height: 18rpx;
                font-weight: bold;
                text-align: center;
            }
            view.color5870f6{
              color: #5870f6;
            }
          }
          view.recipe-manage-item:last-child{
            .item-map-container{
                border-right: 0;
            }
          }
        }
      }

    //聊天
    view.recipe-chat {
        margin-top: 56rpx;
        display: flex;
        view.recipe-chat-img {
            width: 68rpx;
            height: 68rpx;
            background-color: skyblue;
            border-radius: 50%;
            margin-right: 9rpx;
          image {
            width: 100%;
            height: 100%;
          }
        }
      
        view.recipe-chat-content {
            width: 580rpx;
            display: flex;
            align-items: center;
            background-color: #fff;
            font-size: 24rpx;
            color: #282828;
            // height: 97rpx;
            font-weight: bold;
            line-height: 30rpx;
            padding: 15rpx 40rpx;
            box-sizing: border-box;
            border-radius:9rpx;
            box-shadow: 5rpx 5rpx 28rpx 0 rgba(0,0,0,.12);
            position: relative;
            &::before{
                position: absolute;
                left: -32rpx;
                top: 10rpx;
                display: inline-block;
                content: "";
                border-top: 25rpx solid transparent;
                border-right: 25rpx solid #fff;
                border-bottom: 25rpx solid transparent;
                border-left: 25rpx solid transparent;
            }
        }
      }
    //三餐
    view.three-meals {
        margin-top: 45rpx;
        view.three-meals-content {
          view.three-meals-item {
              overflow: hidden;
              padding: 0 26rpx;
              background-color: #fff;
              border-radius: 9rpx;
              box-shadow: 5rpx 5rpx 28rpx 0 rgba(0,0,0,.12);
              margin-bottom: 26rpx;
              view.three-meals-item-top{
                height: 100rpx;
                display: flex;
                justify-content: space-between;
                view.three-meals-left {
                    display: flex;
                    align-items: center;
                    image {
                        width: 46rpx;
                        height: 46rpx;
                    }
            
                    view.three-meals-left-title {
                        font-size: 28rpx;
                        color: #2f3245;
                        font-weight: bold;
                        margin-left: 15rpx;
                    }
                  }
            
                  view.three-meals-right {
                    display: flex;
                    align-items: center;
                    view.three-meals-left-title {
                        font-size: 24rpx;
                        color: #383635;
                        margin-right: 23rpx;
                    }
            
                    image {
                        width: 33rpx;
                        height: 33rpx;
                    }
                  }
              }
              view.three-meals-item-bottom{
                // display: none;
                // height: 0;
                padding-top: 10rpx;
                padding-bottom: 30rpx;
                color: #666666;
                font-size: 20rpx;
                line-height: 34rpx;
                view.three-meals-item-bottom-content {
                  view.three-meals-item-bottom-title {
                    display: flex;
                    align-items: center;
                    line-height:10rpx;
                    text {
                      
                    }
                    &::before{
                      content: "";
                      display: inline-block;
                      width: 17rpx;
                      height: 17rpx;
                      border: 1rpx solid #666666;
                      border-radius: 50%;
                      line-height: 18rpx;
                    }
                  }
                
                  view.three-meals-item-bottom-info {
                    margin-top: 4px;
                  }
                }
              }
    
          }
        }
      }

    // 提示
    view.recipe-hint {
        color: #fff;
        font-size: 20rpx;
        height: 240rpx;
        // background: pink;
        overflow: hidden;
        background:url('https://wftpay.ssgddsj.com/b30Img/recipe-hint.jpg') no-repeat;
        background-size:contain;
        // border-radius: 9rpx;
        // box-shadow: 5rpx 5rpx 28rpx 0 rgba(0,0,0,.12);
        view.info {
            margin-top: 102rpx;
            margin-left: 44rpx;
            line-height: 30rpx;
            view {
                
            }
        }
    }





    // 头部
    .home_title {
        margin-top: 30rpx;
        text-align: center;
        color: #fff;
        // background-image: linear-gradient(#08c0c8, #60d4d0);
        background-color: #dce1fe;
        height: 90rpx;
        border-radius: 48rpx;
        box-shadow: 0px 0px 5rpx #888888;
        .home_title_title{
            font-size: 44rpx;
            font-weight: bold;
            text-shadow: 2rpx 2rpx 2rpx #347677;
        }
        .home_title_date{
            font-size: 20rpx;
        }
    }
    // 消息
    .home_info {
        margin-top: 30rpx;
        text-indent: 40rpx;
        font-size: 24rpx;
        line-height: 50rpx;
        color: #383635;
        font-weight: 700;
      .home_info_content {
      
      }
    }


    // 饮食方案
    .menu {
        margin-top: 50rpx;
        .menu_title {
          text-align: center;
          font-size: 40rpx;
          line-height: 70rpx;
          color: #fff;
          background-image: linear-gradient(#08c0c8,#65d5d1);
          width: 322rpx;
          margin: 0 auto;
          border-radius: 35rpx;
          font-weight: bold;
        }
        .menu_hint{
            font-size: 36rpx;
            color:#383635;
            line-height: 80rpx;
            display: flex;
            align-items: center;
            font-weight: bold;
        }
        .menu_item {
            &:nth-child(2n){
                color: #868685;
                .item_title{
                    color: #868685;
                }
            }
          .item_title {
              display: flex;
              align-items: center;
              height: 58rpx;
              color: #383635;
              font-size: 28rpx;
                image{
                    width: 55rpx;
                }
                .time_frame{
                    font-weight: bold;
                    margin-right: 28rpx;
                    margin-left: 10rpx;
                }
                .recommend_tiem{

                }

          }

          .item_content {
              padding: 10rpx 0 20rpx 20rpx;
              font-size: 26rpx;
              text{
                  line-height: 50rpx;
              }
          }
        }
      }

    //注意事项
    .announcements {
        margin-top: 40rpx;
        .announcements_title {
            text-align: center;
            font-size: 40rpx;
            line-height: 70rpx;
            color: #fff;
            background-image: linear-gradient(#08c0c8,#65d5d1);
            width: 322rpx;
            margin: 0 auto;
            border-radius: 35rpx;
            font-weight: bold;
        }
      
        .announcements_contetn {
            margin-top: 20rpx;
            font-size: 36rpx;
            line-height: 50rpx;
          text {
      
          }
        }
      }

    // 饮食互换建议
    .suggest{
        // margin-top: 60rpx;
        .suggest_title{
            font-size: 36rpx;
            line-height: 70rpx;
            color: #383635;
            margin: 0 auto;
            border-radius: 35rpx;
            font-weight: bold;
        }
        .suggest_tab {
            margin-top: 38rpx;
            border-radius: 40rpx;
            overflow: hidden;
            box-shadow: 5rpx 5rpx 28rpx 0 rgba(0,0,0,.12);
            background-color: #fff;
            .suggest_tab_top{
                display: flex;
                height: 100rpx;
                background-color: #e9e9e9;
                .suggest_tab_title {
                    flex: 1;
                    text-align: center;
                    height: 100%;
                    width: 100%;
                    font-size: 22rpx;
                    font-weight: bold;
                    position: relative;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    text {
                    }
                  }
                  .active{
                    background-color: #fff;
                    color: #5870f6;
                    position: relative;
                    &::after{
                        position: absolute;
                        bottom: 0;
                        content: "";
                        display: inline-block;
                        width: 96rpx;
                        height: 4rpx;
                        background-color: #5870f6;
                    }
                    &::before{
                        content: "";
                        display: inline-block;
                        border-top: 10rpx solid transparent;
                        border-right: 10rpx solid transparent;
                        border-bottom: 10rpx solid #5870f6;
                        border-left: 10rpx solid transparent;
                        position: absolute;
                        bottom: 0;
                    }
                }
            }
            .suggest_tab_bottom{
                padding: 0 25rpx 54rpx;
                display: flex;
                margin-top: 124rpx;
                .suggest_box {
                    flex: 1;
                    padding-right: 4rpx;
                    height: 370rpx;
                    .content{
                        background-color: #dce1fe;
                        border-radius: 16rpx;
                        height: 100%;
                        padding: 60rpx 30rpx 0;
                        box-sizing: border-box;
                        position: relative;
                        image {
                            width: 290rpx;
                            position: absolute;
                            top: -100rpx;
                            left: 50%;
                            transform: translateX(-50%);
                        }
                        .title {
                            background-color: #4a5cc0;
                            color: #fff;
                            text-align: center;
                            line-height: 38rpx;
                            border-radius: 25rpx;
                            font-size: 20rpx;
                            font-weight: bold;
                        }
                        .illustrate {
                            margin-top: 24rpx;
                            color: #5870f6;
                            font-size: 20rpx;
                            font-weight: bold;
                        }
                    }
                  }
                  .taboo_box {
                    flex: 1;
                    padding-left: 4rpx;
                    height: 370rpx;
                    .content{
                        padding: 60rpx 30rpx 0;
                        height: 100%;
                        background-color: #d6d6d8;
                        border-radius: 16rpx;
                        box-sizing: border-box;
                        position: relative;
                        image {
                            width: 290rpx;
                            position: absolute;
                            top: -100rpx;
                            left: 50%;
                            transform: translateX(-50%);
                        }
                      
                        .title {
                            background-color: #f3f4fd;
                            color: #383635;
                            text-align: center;
                            line-height: 50rpx;
                            border-radius: 25rpx;
                            font-size: 20rpx;
                            font-weight: bold;
                        }
                      
                        .illustrate {
                            margin-top: 24rpx;
                            color: #383635;
                            font-size: 20rpx;
                            font-weight: bold;
                        }
                    }
                  }
            }
          }
    }
    //历史食谱
    .history-recipe{
        position: fixed;
        right: 30rpx;
        bottom: 30rpx;
        width: 125rpx;
        height: 125rpx;
        color: #4a5cc0;
        font-size: 24rpx;
        background-color: #fff;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 0 60rpx 0rpx rgba(174, 186, 255,.8);
    }

    
  }

  //为空时显示
  .empty{
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 32rpx;
  }

  //弹框
  .popout-container{
    view.mask {
      position: fixed;
      top: 0;
      left: 0;
      background-color: rgba(0, 0, 0, .5);
      width: 100%;
      height: 100vh;
      z-index: 99;

    }
    //姓名
    view.name-popout {
      z-index: 100;
      position: absolute;
      top: 300rpx;
      left: 50%;
      transform: translateX(-50%);
      width: 540rpx;
      height: 490rpx;
      background-color: #fff;
      border-radius: 10rpx;
      view.name-popout-title {
        margin-top: 50rpx;
        text-align: center;
        font-size: 34rpx;
      }
    
      view.name-popout-content {
        margin-top: 70rpx;
        view.content-input {
          text-align: center;
          position: relative;
          height: 68rpx;
          input {
            font-size: 30rpx;
          }
          &::after{
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            content: "";
            display: block;
            height: 1rpx;
            background-color: #e6e6e6;
            width: 330rpx;
          }
        }
    
        view.content-info {
          margin-top: 24rpx;
          text-align: center;
          font-size: 20rpx;
          color: #a7a7a5;
        }
      }
    
      view.name-popout-btn {
        // margin: 50rpx auto 0;
        position: absolute;
        bottom: 54rpx;
        left: 50%;
        transform: translateX(-50%);
        width: 274rpx;
        line-height: 80rpx;
        color: #fff;
        text-align: center;
        font-size: 32rpx;
        background: linear-gradient(#8193fa,#7c5fdd);
        border-radius: 40rpx;
      }
    }
  }